import request from '@/utils/request'

export default {
    //添加
    addVideo(video) {
        return request({
            url: `/eduservice/video/addVideo`,
            method: 'post',
            data: video
        })
    },
    //修改
    updateVideo(video) {
        return request({
            url: `/eduservice/video/updateVideo`,
            method: 'post',
            data: video
        })
    },
    //删除
    deleteVideo(videoId) {
        return request({
            url: `/eduservice/video/deleteVideo/${videoId}`,
            method: 'delete',
        })
    },
    //获取
    getVideo(videoId) {
        return request({
            url: `/eduservice/video/getVideo/${videoId}`,
            method: 'get',
        })
    },

}